@extends('admin.admin.index')
@section('weizhi','添加图片')
@section('con')
<div class="col-md-6 col-md-offset-3">
	<form action="{{url('/admin/brand/insert')}}" method="post" enctype="multipart/form-data" class="form-horizontal" role="form">

	  <div class="form-group">
        <label for="inputEmail3" class="col-sm-2 control-label">选择分类</label>
		<div class="col-sm-10">
        <select class="form-control" name="gid">
        <option value="0">请选择</option>
    	@foreach($cates as $k => $v)
    	  <option value="{{$v->id}}">{{$v->name}}</option>
    	@endforeach
    	</select>

	  </div>
	  </div>

	  <div class="form-group">
	    <label for="inputEmail3" class="col-sm-2 control-label">品牌名称</label>
	    <div class="col-sm-10">
	      <input type="text" class="form-control" name="name" id="inputEmail3" placeholder="请输入名称">
	      <span class="help-block"><span style="color:red;">*</span>&nbsp;&nbsp;限制15个文字以下</span>
	    </div>
	  </div>

	  <div class="form-group">
	    <label for="inputPassword3" class="col-sm-2 control-label">品牌logo</label>
	    <div class="col-sm-10">
	      <input type="file" name="pic" class="" id="inputPassword3">
	    </div>
	  </div><br>
	  {{csrf_field()}}
	  <div class="form-group">
	    <div class="col-sm-offset-2 col-sm-10">
	      <button type="submit" class="btn btn-default">确认上传</button>
	    </div>
	  </div>
	</form>
</div>
@endsection